import request from '@/utils/request'

// 查询绑定分润配置 列表
export function listSharing(query) {
  return request({
    url: '/business/sharing/list',
    method: 'get',
    params: query
  })
}

export function listSharings(query) {
  return request({
    url: '/business/sharing/lists',
    method: 'get',
    params: query
  })
}

// 查询绑定分润配置 详细
export function getSharing(id) {
  return request({
    url: '/business/sharing/' + id,
    method: 'get'
  })
}

// 新增绑定分润配置
export function addSharing(data) {
  return request({
    url: '/business/sharing',
    method: 'post',
    data: data
  })
}

// 修改绑定分润配置
export function updateSharing(data) {
  return request({
    url: '/business/sharing',
    method: 'put',
    data: data
  })
}

// 删除绑定分润配置
export function delSharing(id) {
  return request({
    url: '/business/sharing/' + id,
    method: 'delete'
  })
}
